package com.lanou3g.ptp.achievement.service;

import com.github.pagehelper.PageInfo;
import com.lanou3g.ptp.entity.Diary;

import java.util.Date;
import java.util.List;


public interface DiaryService {

    //查询所有
    PageInfo<Diary> findAllDiary(Integer page, Integer size);

    List<Diary> findAll1Diary();

    //模糊查询
    PageInfo<Diary> findByKeyword(Integer page, Integer size, String keyword);

    //通过ID查询
    Diary findDiaryById(Long id);

    //新增
    boolean insertDiary(Diary diary);

    //修改
    void updateDiary(Long id, Diary diary);

    //根据ID删除
    void deleteDiaryId(Long id);

    //删除多个
    void deleteDiaryIds(Long[] ids);

    //学生查询所有
    List<Diary> MyFindAll(Long id);

    //查询日志情况
    List<Diary> findDiarySituation(Date date,Long taskId);

    //查询指定时间内的日志
    Diary findByTime (Date date ,Long taskId,Long studentId);
}
